package cn.sylinx.web;

import java.util.Properties;

public class Config {

	public static final String CONFIG_VERTX_WORKER_POOLSIZE = "config.vertxWorkerPoolSize";

	public static final String CONFIG_HTTP_PORT = "config.httpPort";

	public static final String CONFIG_INSTANCE = "config.instance";

	public static final String CONFIG_MAPPING_PACKAGES = "config.mappingPackages";

	public static final String CONFIG_AUTH_PACAKGES = "config.authPackages";

	public static final String CONFIG_PLUGIN_PACKAGES = "config.pluginPackages";

	public static final String CONFIG_PROPERTY_PATH = "config.propertyPath";

	/**
	 * vertx worker线程池
	 */
	private int vertxWorkerPoolSize;

	/**
	 * http启动端口
	 */
	private int httpPort;

	/**
	 * 启动实例数
	 */
	private int instance;

	/**
	 * 映射路径,多个使用逗号,隔开
	 */
	private String mappingPackages;

	/**
	 * 鉴权路径,多个使用逗号,隔开
	 */
	private String authPackages;

	/**
	 * 插件包,多个使用逗号,隔开
	 */
	private String pluginPackages;

	/**
	 * 外部配置文件
	 */
	private Properties properties;

	public int getVertxWorkerPoolSize() {
		return vertxWorkerPoolSize;
	}

	public void setVertxWorkerPoolSize(int vertxWorkerPoolSize) {
		this.vertxWorkerPoolSize = vertxWorkerPoolSize;
	}

	public int getHttpPort() {
		return httpPort;
	}

	public void setHttpPort(int httpPort) {
		this.httpPort = httpPort;
	}

	public int getInstance() {
		return instance;
	}

	public void setInstance(int instance) {
		this.instance = instance;
	}

	public String getMappingPackages() {
		return mappingPackages;
	}

	public void setMappingPackages(String mappingPackages) {
		this.mappingPackages = mappingPackages;
	}

	public String getAuthPackages() {
		return authPackages;
	}

	public void setAuthPackages(String authPackages) {
		this.authPackages = authPackages;
	}

	public String getPluginPackages() {
		return pluginPackages;
	}

	public void setPluginPackages(String pluginPackages) {
		this.pluginPackages = pluginPackages;
	}

	public Properties getProperties() {
		return properties;
	}

	public void setProperties(Properties properties) {
		this.properties = properties;
	}
}
